home *** CD-ROM | disk | FTP | other *** search
/ Power Programmierung 2 / Power-Programmierung CD 2 (Tewi)(1994).iso / gnu / djgpp / src / texinfo-.1 / info / termdep.h < prev    next >
Encoding:
C/C++ Source or Header  |  1993-08-29  |  1.8 KB  |  67 lines

  1. /* termdep.h -- System things that terminal.c depends on. */
  2.  
  3. /* This file is part of GNU Info, a program for reading online documentation
  4.    stored in Info format.
  5.  
  6.    Copyright (C) 1993 Free Software Foundation, Inc.
  7.  
  8.    This program is free software; you can redistribute it and/or modify
  9.    it under the terms of the GNU General Public License as published by
  10.    the Free Software Foundation; either version 2, or (at your option)
  11.    any later version.
  12.  
  13.    This program is distributed in the hope that it will be useful,
  14.    but WITHOUT ANY WARRANTY; without even the implied warranty of
  15.    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
  16.    GNU General Public License for more details.
  17.  
  18.    You should have received a copy of the GNU General Public License
  19.    along with this program; if not, write to the Free Software
  20.    Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
  21.  
  22.    Written by Brian Fox (bfox@ai.mit.edu). */
  23.  
  24. #if defined (HAVE_SYS_FCNTL_H)
  25. #include <sys/fcntl.h>
  26. #else
  27. #include <fcntl.h>
  28. #endif /* !HAVE_SYS_FCNTL_H */
  29.  
  30. #if defined (HAVE_TERMIO_H)
  31. #include <termio.h>
  32. #include <string.h>
  33. #if defined (HAVE_SYS_PTEM_H)
  34. #if !defined (M_XENIX)
  35. #include <sys/stream.h>
  36. #include <sys/ptem.h>
  37. #undef TIOCGETC
  38. #else /* M_XENIX */
  39. #define tchars tc
  40. #endif /* M_XENIX */
  41. #endif /* HAVE_SYS_PTEM_H */
  42. #else /* !HAVE_TERMIO_H */
  43. #include <sys/file.h>
  44. #if !defined (__MSDOS__)
  45. #include <sgtty.h>
  46. #endif  /* !__MSDOS__ */
  47. #include <strings.h>
  48. #endif /* !HAVE_TERMIO_H */
  49.  
  50. #if defined (HAVE_SYS_TTOLD_H)
  51. #include <sys/ttold.h>
  52. #endif /* HAVE_SYS_TTOLD_H */
  53.  
  54. #if !defined (HAVE_RINDEX)
  55. #undef index
  56. #undef rindex
  57. #define index strchr
  58. #define rindex strrchr
  59. #endif
  60.  
  61. #if !defined (HAVE_BCOPY)
  62. #undef bcopy
  63. #define bcopy(source, dest, count) memcpy(dest, source, count)
  64. #endif
  65.  
  66. /* eof */
  67.